package com.contain2.selfmap.hashcode.demo1;

import java.util.Set;
import java.util.TreeSet;

public class Test {

	public static void main(String[] args) {
		Set<Individual> pets = new TreeSet<Individual>();
		Pet p = new Cat("Elsie May");
		Pet p2 = new Cat("Pinkola");
		Pet p3 = new Cat("Shackleton");
		Pet p4 = new Cat("Stanford");
		Pet p5 = new Dog("Margrett");
		Pet p6 = new Mutt("Spot");
		Pet p7 = new Pug("Louie");
		Pet p8 = new Pug("Fuzzy");
		Pet p9 = new Mutt("Fizzy");
		Pet p10 = new Mutt("Dupree");
		pets.add(p);
		pets.add(p2);
		pets.add(p3);
		pets.add(p4);
		pets.add(p5);
		pets.add(p6);
		pets.add(p7);
		pets.add(p8);
		pets.add(p9);
		pets.add(p10);

		System.out.println(pets);
	}

}
